package com.xiaoye.dao;

import com.xiaoye.entity.Admin;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 宵夜
 * @version 1.0.0
 * @Description: TODO
 */
@Mapper
public interface AdminMapper {

    /**
     * 添加admin
     */
    Integer insert(Admin admin);

    /**
     * 删除admin
     */
    Integer deleteById(Integer id);

    /**
     * 根据no查找单个admin
     */
    Admin getByNo(String no);

    /**
     * 根据id查找单个admin
     */
    Admin getById(Integer id);


    /**
     *  通过实体查找符合实体的list
     */
    List<Admin> listAdmins(Admin build);


    /**
     * 修改admin
     */
    int update(Admin admin);
}
